package com.somlsis.bean;

import android.bluetooth.BluetoothDevice;
import android.os.Parcel;

import com.clj.fastble.data.BleDevice;

public class Device extends BleDevice {
    private boolean isConnect=false;
    private DeviceInfo deviceInfo;
    public Device(BluetoothDevice device) {
        super(device);
    }
    public Device(BluetoothDevice device,DeviceInfo info) {
        super(device);
        this.deviceInfo=info;
    }

    public Device(BluetoothDevice device, int rssi, byte[] scanRecord, long timestampNanos) {
        super(device, rssi, scanRecord, timestampNanos);
    }

    protected Device(Parcel in) {
        super(in);
    }

    public boolean isConnect() {
        return isConnect;
    }

    public void setConnect(boolean connect) {
        isConnect = connect;
    }

    public DeviceInfo getDeviceInfo() {
        return deviceInfo;
    }

    public void setDeviceInfo(DeviceInfo deviceInfo) {
        this.deviceInfo = deviceInfo;
    }
}
